﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - KnockoutJS</title>

    <environment include="Development">
        <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
        <link rel="stylesheet" href="~/css/site.css" />
    </environment>
</head>
<body>
    <header>
        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
            <div class="container">
                <a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="BookShop">书城</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent"
                        aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            @await Component.InvokeAsync("Cart")
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>

    <div class="container contentMenu">
        <partial name="_CookieConsentPartial" />
        <main role="main" class="pb-3">
            @RenderBody()
        </main>
        <div class="jumbotron" style="padding:32px;">
            <p class="lead">挑选你最喜欢的书籍，将会给你最好的折扣.</p>
            <p><a href="@Url.Action("BookShop","Home")" class="btn btn-primary btn-lg">更多信息 &raquo;</a></p>
        </div>
    </div>

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">当前购物车</h4>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                </div>
                <div class="modal-body">
                </div>
                <div class="modal-footer">
                    <a href="@Url.Action("Index","Cart")" class="btn btn-primary active" role="button">详情</a>
                </div>
            </div>
        </div>
    </div>

    <environment include="Development">
        <script src="~/lib/jquery/dist/jquery.js"></script>
        <script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
        <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
        <script src="~/lib/jquery.tmpl/jquery.tmpl.js"></script>
        <script src="~/lib/knockout/knockout-3.5.0.js"></script>
        <script src="~/js/knockout.custom.js" asp-append-version="true"></script>
        <script src="~/js/ViewModels/CartSummaryViewModel.js"></script>
    </environment>

    @RenderSection("Scripts", required: false)
</body>
</html>
